package com.echat.business.book.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.echat.business.book.model.Discussion;

import java.util.List;

/**
 * <p>
 * 书籍评论表  服务类
 * </p>
 *
 * @author chentl123
 * @since 2019-05-28
 */
public interface IDiscussionService extends IService<Discussion> {
    /**
     * 根据bookId获取评论 &  回复
     *
     * @param bookId
     * @return
     */
    List<Discussion> getDiscussionAndReplyByBookId(Page<Discussion> page, Integer bookId);

}
